import html from './html';
import s from './ns';
import _ZJ_student_makeup_001 from '../zj-student-makeup-001/n';
import '@feidao/web/atom/nodejs/interfaces';
import init from '@feidao/web/framework/nodejs/d/page';

////////////////////////////////////////////////////////////////////////////////

// atoms import
////////////////////////////////////////////////////////////////////////////////

feidao_exports.default = async (url: string) => {
	const feidao = {};
	const daoke = {};

	const res = await init(html, url, s, daoke, _ZJ_student_makeup_001);
	const html_str = `
	<html lang="en">

	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<title>????</title>
		<link rel="stylesheet" href="../css/iconfont.css">
		<link href="https://cdn.jsdelivr.net/npm/feidao-css/feidao.css" type="text/css" rel="stylesheet">
		<link rel="stylesheet" href="../css/daokes.css">
	</head>

	<body class="bg-db">
${html.toString()}
</body>
</html>`;
	const html_obj = { data: html_str };
	if (typeof res === 'object' && Object.keys(res).length > 0) {
		const result = Object.assign({}, res, html_obj);
		return result;
	}
	return html_obj;
}
